var express = require('express');
var router = express.Router();

/* GET users listing. */
router.get('/', function(req, res, next) {
    if (req.session.user_id) {
        res.send('respond with a resource');
    } else {
        res.json({
            code: -1,
            msg: "请先登录"
        })
    }
});

module.exports = router;